package com.chief.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

//service暴露的名称
@FeignClient("openfeign-service")
public interface OpenFeignTestService {

    //请求地址
    @GetMapping("/openfeign-test")
    Map<String, Object> openFeignTest(@RequestParam("code") String code);

}